<template>
  <div id="container">
    <div id="app">
      <h3>案例：折叠面板</h3>
      <Pannel>
        <template #title>
          <h4>标题</h4>
        </template>
        <template v-slot="scope">
          <!-- 通过v-slot=声明的变量值会自动获取slot插槽里面定义的自定义属性名和属性值 -->
          {{ scope.row.defaultTwo }}
        </template>
      </Pannel>
    </div>
  </div>
</template>

<script>
import Pannel from "../components/05/Pannel.vue";
export default {
  components: { Pannel },
};
</script>

<style>
#app {
  width: 400px;
  margin: 20px auto;
  background-color: #fff;
  border: 4px solid blueviolet;
  border-radius: 1em;
  box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.5);
  padding: 1em 2em 2em;
}
</style>